package org.flowable.pz.controller;

import org.flowable.pz.config.UserConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private UserConfig userConfig;

    //模拟登录
    @RequestMapping("/user")
    public void setUser(@RequestParam("userId") String userId){
        userConfig.setUserId(userId);
    }
}
